package com.ffxnh.bean;

/**
 * 用户Bean
 *
 * @author zhaopeng
 * @since 2023/11/15
 */
public abstract class User {

    private String username;

    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public abstract Car myCar();

    public void myCarDisplay() {
        myCar().display();
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
